ENT.Type 		= "anim"
ENT.Base 		= "base_gmodentity"

ENT.PrintName	= "Generator"
ENT.Author		= "Adam Rezich"
ENT.Contact		= "adam@thetyphooncorp.com"

function ENT:SetOverlayText( text )
	self.Entity:SetNetworkedString( "GModOverlayText", text )
end

function ENT:GetOverlayText()

	local txt = self.Entity:GetNetworkedString( "GModOverlayText" )
	
	if ( txt == "" ) then
		return ""
	end
	
	if ( SinglePlayer() ) then
		return txt
	end

	local PlayerName = self:GetPlayerName()

	return txt .. "\n(" .. PlayerName .. ")"
	
end
